package com.dwd.hrm.exception;

/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/3/5 14:44
 * @Version 1.0
 */
public class GlobalException extends RuntimeException {
    Integer code;

    public GlobalException() {
    }

    public GlobalException(String message) {
        super(message);
    }

    public GlobalException(SystemError systemError) {
        super(systemError.getMessage());
        this.code = systemError.getCode();
    }
}
